import datong from '@/assets/static/map/province/shanxi/datong.json'
import jincheng from '@/assets/static/map/province/shanxi/jincheng.json'
import jinzhong from '@/assets/static/map/province/shanxi/jinzhong.json'
import linfen from '@/assets/static/map/province/shanxi/linfen.json'
import lvliang from '@/assets/static/map/province/shanxi/lvliang.json'
import suozhou from '@/assets/static/map/province/shanxi/suozhou.json'
import taiyuan from '@/assets/static/map/province/shanxi/taiyuan.json'
import xinzhou from '@/assets/static/map/province/shanxi/xinzhou.json'
import yangquan from '@/assets/static/map/province/shanxi/yangquan.json'
import yuncheng from '@/assets/static/map/province/shanxi/yuncheng.json'


const name2pinyin = {
  大同市: datong,
  晋城市: jincheng,
  晋中市: jinzhong,
  临汾市: linfen,
  吕梁市: lvliang,
  朔州市: suozhou,
  太原市: taiyuan,
  忻州市: xinzhou,
  阳泉市: yangquan,
  运城市: yuncheng

}

export function getProvinceMapInfo(arg) {
  // const path = `./static/map/province/shanxi/${name2pinyin[arg]}.json`
  const path = name2pinyin[arg]
  return {
    key: name2pinyin[arg],
    path: path
  }
}
